package com.usian.model.record;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 积分记录表
 * </p>
 *
 * @author wyp
 * @since 2024-12-23
 */
@TableName("recordd")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Recordd implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 积分记录表id
     */
    @TableId(value = " id", type = IdType.AUTO)
    private Integer  id;

    /**
     * 使用积分昵称
     */
    private String name;

    /**
     * 使用积分数量
     */
    private Integer score;

    /**
     * 使用时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date datee;

    /**
     * 用户id
     */
    private Integer uid;

}
